home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
perl5
/
Debconf
/
TmpFile.pm
< prev
Wrap
Text File
|
2008-10-10
|
410b
|
33 lines
#!/usr/bin/perl
# This file was preprocessed, do not edit!
package Debconf::TmpFile;
use strict;
use IO::File;
use Fcntl;
my $filename;
sub open {
my $fh; # will be autovivified
my $ext=shift || '';
do { $filename=POSIX::tmpnam().$ext }
until sysopen($fh, $filename, O_WRONLY|O_TRUNC|O_CREAT|O_EXCL, 0600);
return $fh;
}
sub filename {
return $filename;
}
sub cleanup {
unlink $filename;
}
1